package com.xu.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author anan
 * @create 2021-12-24 20:59
 */
@ApiIgnore //可以在swagger2显示界面中不显示该类
@RestController
public class HelloController {
    final static Logger logger = LoggerFactory.getLogger(HelloController.class);
    @GetMapping("/hello")
    public Object hello(){
        logger.info("info : 进行日志工具测试");
        logger.debug("debug : 进行日志工具测试");
        logger.warn("warn : 进行日志工具测试");
        logger.error("error : 进行日志工具测试");
        return "hello";
    }
}
